package com.micai.springboot.service;

import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.Page;
import com.micai.springboot.dto.MemberDto;
import com.micai.springboot.entity.MemberEntity;
import com.micai.springboot.vo.MemberVo;

/**
 * @Auther: zhaoxinguo
 * @Date: 2018/7/12 12:00
 * @Description:
 */
public interface MemberService extends IService<MemberEntity> {

    MemberDto getMemberByParam(String name, String passWord);

    Integer getMemberCountByName(String name);

    void saveMember(MemberDto bizDto);

    Page<MemberDto> getMemberByPage(int pageNum, int pageSize, String searchParam, String startDate, String endDate);

    Integer getMemberCountByEmail(String email);

    MemberDto getMemberByEmail(String email);

    MemberDto getMemberById(Long id);

    Integer updateMemberById(MemberDto memberDto);

    Integer update(MemberDto memberDto);

    Integer getMemberCountByPhone(String phone);
}
